.class Lcom/instagram/android/gl/g;
.super Ljava/lang/Object;
.source "FilterController.java"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:I

.field final synthetic b:Lcom/instagram/android/gl/i;

.field final synthetic c:Lcom/instagram/android/gl/a;


# direct methods
.method constructor <init>(Lcom/instagram/android/gl/a;ILcom/instagram/android/gl/i;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 108
    iput-object p1, p0, Lcom/instagram/android/gl/g;->c:Lcom/instagram/android/gl/a;

    iput p2, p0, Lcom/instagram/android/gl/g;->a:I

    iput-object p3, p0, Lcom/instagram/android/gl/g;->b:Lcom/instagram/android/gl/i;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .prologue
    .line 113
    .line 114
    invoke-static {}, Lcom/instagram/j/a/b;->a()Lcom/instagram/j/a/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/j/a/b;->f()Z

    move-result v0

    .line 116
    iget v1, p0, Lcom/instagram/android/gl/g;->a:I

    const/4 v2, -0x1

    if-ne v1, v2, :cond_1

    .line 117
    invoke-static {}, Lcom/instagram/android/creation/c/a;->a()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 118
    const/16 v1, 0x400

    invoke-static {v1, v0}, Lcom/instagram/android/gl/NativeBridge;->renderBuffer(IZ)I

    move-result v0

    .line 135
    :goto_0
    iget-object v1, p0, Lcom/instagram/android/gl/g;->c:Lcom/instagram/android/gl/a;

    invoke-virtual {v1}, Lcom/instagram/android/gl/a;->a()Lcom/instagram/android/gl/FilterGLSurfaceView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/gl/FilterGLSurfaceView;->getHandler()Landroid/os/Handler;

    move-result-object v1

    new-instance v2, Lcom/instagram/android/gl/h;

    invoke-direct {v2, p0, v0}, Lcom/instagram/android/gl/h;-><init>(Lcom/instagram/android/gl/g;I)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 150
    return-void

    .line 122
    :cond_0
    invoke-static {}, Lcom/instagram/b/a;->b()Lcom/instagram/b/g;

    move-result-object v0

    const-string v1, "render_full_size_buffer"

    invoke-interface {v0, v1}, Lcom/instagram/b/g;->a(Ljava/lang/String;)V

    .line 123
    invoke-static {}, Lcom/instagram/android/gl/NativeBridge;->renderFullSizeBuffer()I

    move-result v0

    .line 124
    invoke-static {}, Lcom/instagram/b/a;->b()Lcom/instagram/b/g;

    move-result-object v1

    const-string v2, "render_full_size_buffer"

    invoke-interface {v1, v2}, Lcom/instagram/b/g;->b(Ljava/lang/String;)V

    goto :goto_0

    .line 127
    :cond_1
    invoke-static {}, Lcom/instagram/b/a;->b()Lcom/instagram/b/g;

    move-result-object v1

    const-string v2, "render_upload_buffer"

    invoke-interface {v1, v2}, Lcom/instagram/b/g;->a(Ljava/lang/String;)V

    .line 128
    iget v1, p0, Lcom/instagram/android/gl/g;->a:I

    invoke-static {v1, v0}, Lcom/instagram/android/gl/NativeBridge;->renderBuffer(IZ)I

    move-result v0

    .line 129
    invoke-static {}, Lcom/instagram/b/a;->b()Lcom/instagram/b/g;

    move-result-object v1

    const-string v2, "render_upload_buffer"

    invoke-interface {v1, v2}, Lcom/instagram/b/g;->b(Ljava/lang/String;)V

    goto :goto_0
.end method
